<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>MainProject</title>
    </h:head>
    <h:body>


        <h:form>
            <p:growl id="de_growl" showDetail="true" />
            <p:messages id="de_msg" />



            <table>



                <tr>
                    <td><h:outputLabel rendered="true"  value="Name" /></td>
                <td>:</td>
                <td>
                <h:inputText  id="nameTxt"
                              value="#{mainProjectBean.mainProjectTable.name}"
                              required="false"
                              rendered="true"
                              requiredMessage="Name is Mandatory"/>
                </td>
                </tr>



            </table>
            <h:panelGrid columns="2" cellpadding="10">
                <h:column>
                    <p:commandButton value="Save" id="Savecmd"
                                     action="#{mainProjectBean.Insert}" update="de_msg,de_growl" title="Save MainProject" />
                </h:column>
            </h:panelGrid>
        </h:form>
    </h:body>
</html>	
